import React from "react";
import { DatePicker as AntdDatePicker } from "../../antd/index";
import { commonProps } from ".";

// type
import { AntdYearPickerProps } from ".";

export interface Props extends AntdYearPickerProps {}

function YearPicker(props: Props) {
  const YearPickerProps = {
    ...commonProps,
    ...props,
  };
  return <AntdDatePicker.YearPicker {...YearPickerProps} />;
}

export default YearPicker;
